package org.dbstar.scheduler.control.db.job;

import java.io.File;
import java.sql.Types;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.SqlParameter;

/**
 * 按照Identifier查询Job
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-4-28
 */
public class JobQueryByIdentifier extends JobQuery {
	public JobQueryByIdentifier(JdbcTemplate jdbcTemplate, File resultRoot) {
		super(jdbcTemplate, "WHERE SYSTEM_IDENTIFIER = ? AND SEQUENCE = ?", resultRoot);
		declareParameter(new SqlParameter("SYSTEM_IDENTIFIER", Types.VARCHAR));
		declareParameter(new SqlParameter("SEQUENCE", Types.INTEGER));
	}
}
